package com.example.my_model.room;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;

import com.example.my_model.accountentity.DataDTO;

import java.util.List;

import io.reactivex.Maybe;
@Dao
public interface UserDao {
    @Delete
    void deleteUser(DataDTO dataDTO);


    @Query("select  *  from DataDTO")
    Maybe<List<DataDTO>> queryUser();

    @Insert
    void insertUser(DataDTO dataDTO);
}
